<template>
    <div></div>
  </template>
  
  <script setup>
  import { onMounted, ref } from 'vue'
  import { signLogin } from '@/js/api/sceneApi'
  import md5 from 'js-md5'
  onMounted(() => {
    toCookiesSave()
  })
  const toCookiesSave = async () => {
    let timestamp = parseInt(new Date().getTime() / 1000)
    let params = timestamp + '_test_' + 'e4daded24a4a2b0e57d70ab52790deba'
    let signature = md5(params)
    
    const data = {
      signature,
      timestamp,
      username: 'test'
    }
    let res = await signLogin(data)
    console.log("登陆成功：",res)


  }
  </script>
  